import cookielib, urllib2, urllib

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))

#login into stusys
query_args = { 'service':'index', 'operationType':'loginAuth','uid':'fb','pwd':'' }
encoded_args = urllib.urlencode(query_args)
url = 'http://localhost/ds/fpf/login/eisLogin.action'
home2 = opener.open(url, encoded_args)


#open module link
home3 = opener.open('http://localhost/ds/stusys/sch/abnormali/modify/stuInfoApplyMain.action')
